//
//  PersonInfoTableViewCell.m
//  EnterpriseEdition
//
//  Created by ypj on 2021/10/8.
//

#import "PersonInfoTableViewCell.h"

@implementation PersonInfoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.contentTF.delegate=self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+(CGFloat)cellHeight{
    return 57;
}
+(NSString *)reuseIdentifier{
    return @"PersonInfoTableViewCell";
}
-(void)textFieldDidEndEditing:(UITextField *)textField
{
    [textField resignFirstResponder];
    self.currentValueBlock(self.contentTF.text, self.selectPath);
}
#pragma mark  把输入的值和完没完成的bool变量传过去
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    self.currentValueBlock(self.contentTF.text, self.selectPath);
    return YES;
}
@end
